package com.yt.product.models.dto;

import com.baomidou.mybatisplus.annotations.TableName;
import com.yt.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 产品信息DTO
 *
 * @author zhou
 * @Date 2025-09-05 11:31:42
 */
@Data
@TableName("product_info")
@ApiModel(value = "产品信息对象", description = "产品信息对象")
public class ProductInfoDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "产品名称")
    private String productName;
    @ApiModelProperty(value = "供应商ID")
    private Long supplierId;
    @ApiModelProperty(value = "产品类别ID")
    private Long categoryId;
    @ApiModelProperty(value = "状态（0禁用，1启用）")
    private Integer status;
    @ApiModelProperty(value = "库存")
    private Long stock;
    @ApiModelProperty(value = "价格")
    private BigDecimal price;
}